/******************************************************************************/
STRUCT(Inventory , NetInventory)
//{
   // get
   Item& item(Int i) {return (Item&)items[i];} // we can perform direct cast since 'items' had 'replaceClass' called in constructor

   Bool slotCanBePutTo   (SLOT_TYPE src, SLOT_TYPE dest); // test if slot 'src' can be put to 'dest' slot
   Bool slotsCanBeSwapped(SLOT_TYPE a  , SLOT_TYPE b   ); // test if slot 'a'   can be swapped with slot 'b'

   // manage
   void create(NetInventory &src);
   void setGui();

   // update
   void update(CSkeleton &cskel, Chr *owner);

   // draw
   UInt drawPrepare();
   void drawShadow ();

  ~Inventory();
   Inventory() {items.replaceClass<Item>();}
};
/******************************************************************************/
